home *** CD-ROM | disk | FTP | other *** search
-
- README
- Turbo Pascal for Windows 3.0 Programming
- (c) 1991,1992 by Tom Swan. All rights reserved.
-
-
- These instructions explain how to install the compressed archive
- files on this diskette. The archive files end with .LZH--the file
- PART2.LZH, for example, contains the listings for Part 2. The disk
- includes every listing from the book, and also includes several bonus
- programs, described at the end of this README file.
-
- To get in touch, send Compuserve mail to Tom Swan 73627,3241. You can
- also send MCI mail, or contact me on Internet via your Compuserve
- gateway. Send mail to Swan Software; P.O. Box 206; Lititz PA 17543.
- Phone:717/627-1911. Fax:717/627-4715. Enjoy!
-
-
- ----------
- (NOTE: The files on disk are compressed. Before you can use these
- files you MUST decompress them using the supplied software. Follow
- these instructions to install the files onto your hard drive.)
- ----------
-
-
- INSTALLING THE DISK
-
- 1. Create a directory on your hard drive to hold the files from the
- disk. I suggest naming the directory TPW3P (for Turbo Pascal for
- Windows 3.0 Programming). You can use a different name if you want.
- Copy all files from the disk to the directory. For example, if the
- disk is in A: and your hard drive is C:, at a DOS prompt enter the
- commands:
-
- c:
- cd \
- md tpw3p
- copy a:*.* c:\tpw3p
-
- 2. Change to your TPW3P directory. With the supplied LHARC.EXE program
- in the current directory, run the UNPACK.BAT batch file to dearchive
- all files. You need about 1.5 megabytes of available disk space.
- For example, enter the commands:
-
- c:
- cd \tpw3p
- unpack
-
- 3. The UNPACK.BAT file creates various subdirectories, and then it
- extracts files from the .LZH archives into these directories. If the
- current directory is C:\TPW3P, for example, Part 2's files are stored
- in C:\TPW3P\PART2.
-
- 4. After dearchiving, you may delete all .LZH files from the hard
- drive directory. You may also delete UNPACK.BAT. For example,
- enter the commands:
-
- del *.lzh
- del unpack.bat
-
- 5. Installation is complete. Remove the disk from A:. Read the
- following notes for further instructions.
-
-
- GENERAL NOTES
-
- Most programs work equally well under Windows 3.0 and Windows 3.1.
- You can use Turbo Pascal for Windows 1.0 or 1.5. Some programs,
- however, require TPW 1.5 and Windows 3.1.
-
- All resource (.RES) files have been updated with Borland's Resource
- Workshop, supplied with TPW 1.5.
-
- I fixed some minor bugs here and there. Many thanks to all readers
- who have phoned, written, and sent Compuserve mail. I GREATLY
- appreciate all of your comments and bug reports!
-
-
- BONUS PROGRAMS AND FILES
-
- In your C:\TPW3P directory are several subdirectories. The
- directories PART2, PART3, and PART4 contain all of the book's
- listings, plus binary resource files. Load these .PAS programs into
- Turbo Pascal for Windows and press Ctrl+F9 to compile and run.
- Consult the book for instructions about specific programs.
-
- If you are using Windows 3.0, you might have to edit the SLIDES.PAS
- program in PART3. Change the file and path names to the names of the
- .BMP slide files you want to view, and also set constant numSlides
- to the number of slides.
-
- Bonus files are also included on this disk. The following notes
- explain how to use these extra goodies. Each is stored in its own
- directory. The files for the COMMON demonstration, for example, are
- stored in C:\TPW3P\COMMON.
-
-
- COMMON
-
- Requires Windows 3.1 and Turbo Pascal for Windows 1.5. Demonstrates
- how to use common dialog boxes to select colors, fonts, and so on.
-
-
- INDEX
-
- This directory contains a single file, INDEX.TXT, a copy of the
- subject index in the back of the book. Load this file into your
- editor and use the text as an online reference.
-
-
- LHARC.EXE
- LHARC.MAN
-
- The LHARC.MAN file contains the complete user manual for the public
- domain LHARC.EXE compression utility. LHARC isn't as fast as the
- popular shareware program PKZIP and other ARC utilities, but in most
- cases, LZH files are smaller than the equivalent ARC and ZIP files.
-
- If you want to know how to use this impressive program, read the full
- manual. If you just want to unpack the files on this disk, you do not
- need to read the user manual.
-
-
- MANCALA
-
- The game of Mancala is a complete Windows application, with online
- help, animated graphics, keyboard and mouse support, and other
- features. The full source code for Mancala is included on disk along
- with all of the files that I used to build the program's online help
- using TPW's HC help compiler.
-
-
- OWLSPY
-
- Use this utility to spy on windows. Compile OWLSPY.PAS and move the
- mouse to display the pointer's local and global coordinates. Local
- coordinates are relative to the program's window, with (0,0) in the
- upper left corner. Global coordinates are relative to the entire
- screen.
-
- To view coordinates outside of OWLSPY's window, click and hold the
- left mouse button while moving the mouse pointer. When you do this,
- the cursor changes to a cross.
-
- For information about any window onscreen, use the Window:Get-info
- command to open a small window. Read the dialog box and then close it
- by selecting the Ok button. Move the mouse pointer inside the
- information window, click and hold the left mouse button, and drag
- the pointer to any visible window. When you release the mouse, the
- information window displays the target window's title, location, and
- size. This works for any window including dialogs and controls. (Try
- examining a button!)
-
-
- SYSCOLOR
-
- In this file is a revised version of the SysColor utility, also found
- in PART3 in a slightly different form. You'll find instructions for
- using the program in the file SYSCOLOR.WRI, formatted for reading
- with the Windows Write text processor. You'll find similar
- instructions in the book.
-
- (Note: SysColor requires a mouse.)
-
-
- TOOLBAR
-
- Written by Danny Thorpe, QA Engineer in the Pascal Support Group at
- Borland, the ToolBar unit makes it possible to program toolbars like
- the one in Turbo Pascal for Windows 1.5. I described how to use this
- unit in my PC Techniques column, Shades of Windows. These files are
- identical to those available from the magazine, and also on
- Compuserve. Many thanks to Danny Thorpe and to Borland for making
- this wonderful unit available!
-
-